inherited FrmServicosVendedorRel: TFrmServicosVendedorRel
  Left = 334
  Top = 314
  Caption = 'Relat'#243'rio de Servi'#231'os por Vendedor'
  ClientHeight = 259
  ClientWidth = 448
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited pnlOpcoes: TPanel
    Width = 448
    Height = 174
    object Label1: TLabel
      Left = 16
      Top = 8
      Width = 41
      Height = 13
      Caption = '&Empresa'
      FocusControl = edtEmpresaCod
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label2: TLabel
      Left = 16
      Top = 48
      Width = 38
      Height = 13
      Caption = '&Per'#237'odo'
      FocusControl = edtPeriodoInicial
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label3: TLabel
      Left = 98
      Top = 72
      Width = 6
      Height = 13
      Caption = 'a'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label4: TLabel
      Left = 192
      Top = 48
      Width = 46
      Height = 13
      Caption = '&Vendedor'
      FocusControl = edtVendedorCod
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label6: TLabel
      Left = 56
      Top = 88
      Width = 42
      Height = 13
      Caption = '&Situa'#231#227'o'
      FocusControl = cbSituacao
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label5: TLabel
      Left = 16
      Top = 88
      Width = 26
      Height = 13
      Caption = '&Caixa'
      FocusControl = edtCaixa
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label7: TLabel
      Left = 16
      Top = 128
      Width = 36
      Height = 13
      Caption = 'S&ervi'#231'o'
      FocusControl = edtServico
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object edtEmpresaCod: TEdit
      Left = 16
      Top = 24
      Width = 57
      Height = 21
      Hint = 'C'#243'digo da empresa'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 0
      OnExit = edtEmpresaCodExit
    end
    object stEmpresa: TStaticText
      Left = 96
      Top = 24
      Width = 345
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 2
    end
    object btProcuraEmpresa: TButton
      Left = 72
      Top = 24
      Width = 25
      Height = 21
      Hint = 'Buscar empresa'
      Caption = '...'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 1
      TabStop = False
      OnClick = btProcuraEmpresaClick
    end
    object edtPeriodoInicial: TEdit
      Left = 16
      Top = 64
      Width = 73
      Height = 21
      Hint = 'Data inicial'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 3
      OnExit = edtPeriodoInicialExit
    end
    object edtPeriodoFinal: TEdit
      Left = 112
      Top = 64
      Width = 73
      Height = 21
      Hint = 'Data final'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 4
      OnExit = edtPeriodoInicialExit
    end
    object edtVendedorCod: TEdit
      Left = 192
      Top = 64
      Width = 57
      Height = 21
      Hint = 'C'#243'digo do vendedor'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 5
      OnExit = edtVendedorCodExit
    end
    object btProcuraVendedor: TButton
      Left = 248
      Top = 64
      Width = 25
      Height = 21
      Hint = 'Buscar vendedor'
      Caption = '...'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 6
      TabStop = False
      OnClick = btProcuraVendedorClick
    end
    object stVendedor: TStaticText
      Left = 272
      Top = 64
      Width = 169
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 7
    end
    object cbSituacao: TComboBox
      Left = 56
      Top = 104
      Width = 145
      Height = 21
      Hint = 'Situa'#231#227'o do servi'#231'o'
      Style = csDropDownList
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ItemHeight = 13
      ItemIndex = 0
      ParentFont = False
      ParentShowHint = False
      ShowHint = True
      TabOrder = 9
      Text = 'Todos'
      Items.Strings = (
        'Todos'
        'N'#227'o Cancelados'
        'Cancelados')
    end
    object edtCaixa: TEdit
      Left = 16
      Top = 104
      Width = 33
      Height = 21
      Hint = 'N'#250'mero do caixa'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 8
    end
    object edtServico: TEdit
      Left = 16
      Top = 144
      Width = 121
      Height = 21
      Hint = 'C'#243'digo do servi'#231'o'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 10
      OnExit = edtServicoExit
    end
    object btProcuraServico: TButton
      Left = 136
      Top = 144
      Width = 25
      Height = 21
      Hint = 'Buscar servi'#231'o'
      Caption = '...'
      ParentShowHint = False
      ShowHint = True
      TabOrder = 11
      TabStop = False
      OnClick = btProcuraServicoClick
    end
    object stServico: TStaticText
      Left = 160
      Top = 144
      Width = 281
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 12
    end
  end
  inherited pnlBotoes: TPanel
    Top = 215
    Width = 448
  end
  inherited pnlCabecalho: TPanel
    Width = 448
    Caption = 'Servi'#231'os por Vendedor'
  end
  inherited RvProjectModelo: TRvProject
    Left = 56
  end
  inherited sql_dataset_principal: TSQLClientDataSet
    Left = 224
    Top = 137
  end
  inherited rds_dataset_principal: TRvDataSetConnection
    DataSet = RO_ServicosVendedor
    Left = 328
  end
  inherited RvRenderPDF1: TRvRenderPDF
    Left = 296
    Top = 41
  end
  inherited RvSystemPDF: TRvSystem
    Left = 232
    Top = 41
  end
  object RO_ServicosVendedor: TZReadOnlyQuery
    Connection = DtmGeral.ZConexaoBanco
    Active = True
    SQL.Strings = (
      
        'SELECT SD.SAD_CODVEN, US.USU_NOME, COUNT(SS.SAS_QUANTI) QUANTIDA' +
        'DE,'
      'SE.SER_CODIGO, SE.SER_DESCRI, SS.SAS_PRETAB,'
      'SS.SAS_PREVEN,SUM(SS.SAS_PREVEN * SS.SAS_QUANTI) AS TOTAL'
      
        'FROM SERVICOS SE INNER JOIN SAIDA_SERVICO SS ON SS.SAS_IDFSERVIC' +
        'O = SE.SER_IDFSERVICO'
      
        'LEFT JOIN SAIDA_DOCUMENTO SD ON SD.SAD_IDFDOC = SS.SAD_IDFDOC LE' +
        'FT JOIN USUARIOS US'
      
        'ON US.USU_CODIGO = SD.SAD_CODVEN  group by US.USU_NOME, SD.SAD_C' +
        'ODVEN, SE.SER_CODIGO ,'
      'SS.SAS_PRETAB, SS.SAS_PREVEN, SD.SAD_CODVEN, SE.SER_DESCRI')
    Params = <>
    Left = 120
    Top = 65
    object RO_ServicosVendedorSAD_CODVEN: TStringField
      FieldName = 'SAD_CODVEN'
      Required = True
      Size = 3
    end
    object RO_ServicosVendedorUSU_NOME: TStringField
      FieldName = 'USU_NOME'
      Required = True
      Size = 60
    end
    object RO_ServicosVendedorQUANTIDADE: TIntegerField
      FieldName = 'QUANTIDADE'
      ReadOnly = True
    end
    object RO_ServicosVendedorSER_CODIGO: TStringField
      FieldName = 'SER_CODIGO'
      Required = True
      Size = 13
    end
    object RO_ServicosVendedorSER_DESCRI: TMemoField
      FieldName = 'SER_DESCRI'
      BlobType = ftMemo
    end
    object RO_ServicosVendedorSAS_PRETAB: TFloatField
      FieldName = 'SAS_PRETAB'
      Required = True
    end
    object RO_ServicosVendedorSAS_PREVEN: TFloatField
      FieldName = 'SAS_PREVEN'
      Required = True
    end
    object RO_ServicosVendedorTOTAL: TFloatField
      FieldName = 'TOTAL'
      ReadOnly = True
    end
  end
end
